select DISTINCT ctp_affair."ID",ctp_affair.SUBJECT,ctp_affair.MEMBER_ID,FORMMAIN_0035.FIELD0069 as members,col_summary.FORM_RECORDID as fId from ctp_affair 
left outer join col_summary on ctp_affair.OBJECT_ID=col_summary.ID AND ctp_affair.MEMBER_ID = COL_SUMMARY.CURRENT_NODES_INFO
left outer join  FORMMAIN_0035 on col_summary.FORM_RECORDID=FORMMAIN_0035.id
LEFT JOIN formson_0036 ON FORMMAIN_0035.id = formson_0036.FORMMAIN_ID 
WHERE  COL_SUMMARY.TEMPLETE_ID = '4721897230127809122' AND CTP_AFFAIR.STATE = 3 AND FORMMAIN_0035.FIELD0135 = 0 AND "TO_CHAR"(formson_0036.FIELD0012,'yyyy-MM') = "TO_CHAR"(add_months(trunc(sysdate),-1),'yyyy-MM')
AND FORMMAIN_0035.FIELD0135 = 0 AND col_summary.STATE = 0